home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ User Settings General.xpl < prev    next >
Text File  |  1998-11-12  |  1KB  |  48 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="System\User Data"
  5. "NAME"="Windows User Data"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Name"
  8. "TEXT 2"="Company"
  9. "DESCRIPTION 1"="While Windows has been installed on your computer, it has saved your name and the name of your company."
  10. "DESCRIPTION 2"="You can changes these informations here."
  11. "DESCRIPTION 3"=""
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  15. "COMMENT 2"="Version 1.1"
  16.  
  17.  
  18.  
  19. Sub Plugin_Initialize 
  20.  if RegPathExists("HKLM\Software\Microsoft\Windows\CurrentVersion") then
  21.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\RegisteredOwner")
  22.   SetUIElement 1,s
  23.  
  24.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\RegisteredOrganization")
  25.   SetUIElement 2,s
  26.  else 
  27.   Disable
  28.  end if
  29. End Sub
  30.  
  31. Sub Plugin_CheckData(ElementIndex)
  32. End Sub
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  s=GetUIElement(1)
  36.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\RegisteredOwner",s,1)
  37.  
  38.  s=GetUIElement(2)
  39.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\RegisteredOrganization",s,1)
  40. End Sub
  41.  
  42.  
  43. Sub Plugin_Terminate 
  44. End Sub
  45.  
  46.  
  47.  
  48.